Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esercizio Magazzino #6

Open
wants to merge 1 commit into
base: 15_cart_archive
Choose a base branch
from
Open

Esercizio Magazzino #6

wants to merge 1 commit into from

Conversation

Maxs73
Copy link
Collaborator

@Maxs73 Maxs73 commented Mar 9, 2016

Mi sa che faccio prima a chiederti direttamente al corso 😁

namespace MvLabs\Chocosite\Model;
//la classe è costruita per determinare se il magazzino deve essere caricato o scaricato
//inoltre per evitare che il magazzino venga movimentato in modo improprio (vedi setGiacenza in db,php)
class Segno {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L'idea di questa classe è buona, anche se forse è un po' eccessiva. In caso la vedrei più utile se al posto di + e - utilizzassi delle costanti di classe (che però forse non abbiamo mai visto durante il corso) e ti assicurassi che l'input del costruttore fosse effettivamente uno dei valori attesi, tirando un'eccezione in caso contrario

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants